package day3;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class Avg {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int sum=0;
        System.out.println("请输入学生的姓名：");
        String name=in.next();
        for(int i=1;i<=5;i++){
            System.out.println("输入第"+i+"门课的成绩:");
            //int s=in.nextInt();
            //sum+=s;
            sum+=in.nextInt();
        }
        int avg=sum/5;
        System.out.println(name+"平均分是："+avg);
    }
}
